import App from "./App";

// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";
import Cache from "./utils/cache";
import util from "utils/util";
import store from "./store";
Vue.config.productionTip = false;
App.mpType = "app";

Vue.prototype.$util = util;
Vue.prototype.$Cache = Cache;
Vue.prototype.$store = store;

const app = new Vue({
  ...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from "vue";
export function createApp() {
  const app = createSSRApp(App);
  return {
    app,
    store,
    Cache,
  };
}
// #endif
